<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            text-align: center;
        }
    </style>
</head>

<body>
    <p id="gc"></p>
    <!--<h1>距离2019年2月1日已经过了<span id="day"></span>天</h1>
    <h2>距离答辩还有<span id="day1"></span>天</h2> -->
    <script>
       /*  var date1 = new Date("2019-06-24");

        var date2 = new Date();

        var dayTime = date1.getTime() - date2.getTime();

        var dayDiff = dayTime / (24 * 3600 * 1000);
        console.log(dayDiff);
        dayDiff = Math.floor(dayDiff);
        document.querySelector('#day1').innerHTML = dayDiff;



        var date3 = new Date("2019-02-01");

        var date4 = new Date();

        var dayTime1 = date4.getTime() - date3.getTime();

        var dayDiff1 = dayTime1 / (24 * 3600 * 1000);
        dayDiff1 = Math.floor(dayDiff1);
        document.querySelector('#day').innerHTML = dayDiff1; */
   /*  var str = "张浩"
    var str1 = new String("张浩");
    var box = 'shengbangshenghua';

// 搜索第一个出现的字符串的位置
    console.log(box.indexOf('bang'));
    // 搜索第一个出现的生
    console.log(box.indexOf('sheng'));
    // 检测有没有这个数字
    console.log(box.indexOf('botou'));
    // 搜索最后一个出现的生
    console.log(box.lastIndexOf('sheng'));


    var s = 'my|name|space';
    var sg = s.split('|');
    console.log(sg); */
    var words= "夜里做了美丽的恶梦 想清醒我却抵不过心动 梦里你是无底的黑洞 我无力抗拒失重 我的意识自控脉搏流动 全被你神秘引力操控 亲爱的你是危险的迷宫 我找不到出口";
    var words1=words.split(' ');
    for(var i=0 ; i<words1.length; i++){
        document.write(words1[i]+"<br>")
    }
    
    </script>
</body>

</html>